{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Bad\n",
    "for element in some_list:\n",
    "    if condition:\n",
    "            do_something()\n",
    "\n",
    "# Good\n",
    "for element in some_list:\n",
    "    if not condition:\n",
    "        continue\n",
    "    # 减少了一个缩进逻辑\n",
    "    do_something()"
   ]
  }
 ],
 "metadata": {
  "language_info": {
   "name": "python"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
